package parser;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

public class Way {
    private long id;
    private String  editType;
    private Timestamp timestamp;
    private List<Point> points;
    private Integer version;
    private String user;

    public Way() {
        this.points = new ArrayList<>();
    }


    public void addPoint(Point point){
        this.points.add(point);
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getEditType() {
        return editType;
    }

    public void setEditType(String eidtType) {
        this.editType = eidtType;
    }

    public Timestamp getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Timestamp timestamp) {
        this.timestamp = timestamp;
    }

    public List<Point> getPoints() {
        return points;
    }

    public void setPoints(List<Point> points) {
        this.points = points;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }
}
